<link rel="stylesheet" type="text/css" href="./snake.css">
<body>
  <script src="./snake.js"></script>
  <script src="./sorted.js"></script>
  <span id="text"></span>
  <div id="container"></div>
  <div class="help">
    <div style="float: left;">
      长度：<span id="snakeLen"></span>
    </div>
    <div>
      <button onclick="localStorage['snake'] = JSON.stringify(map)">保存</button>
      <button onclick="localStorage.removeItem('snake');window.location.reload()">清除</button>
      <button onclick="start()">查找</button>
      <button onmousedown="game()">下一步</button>
    </div>
    <div style="float: right;">
      路径数：<span id="pathLen"></span>
    </div>
  </div>
</body>